<!--{template ADMIN_DIRECTORY/tpl/admin_header}-->
<div class="page_title">
  <h1>{$model_info[model_name]}{$_lang['task_config']}</h1>
    <div class="tool">
      <a href="index.php?do={$do}&model_id={$model_id}&view={$view}&op=config" class="here">{$_lang['basic_config']}</a>
      <a href="index.php?do={$do}&model_id={$model_id}&view={$view}&op=control">{$_lang['control_config']}</a>
      <a href="index.php?do={$do}&model_id={$model_id}&view={$view}&op=priv">{$_lang['private_config']}</a>
      <a href="index.php?do=custom&view=fields&model_id={$model_id}">自定义输入字段</a>
     </div>
</div>
<div class="box post">
 <div class="tabcon">
  <div class="title"><h2>{$_lang['basic_config']}</h2></div>
	<div class="detail">
	 <form action="{$ac_url}" method="post">
	 	<input type="hidden" name="pk[model_id]" value="{$model_id}">
	  <table width="100%" border="0" cellspacing="0" cellpadding="0">
	    <tr>
		   <th scope="row" width="200">{$_lang['model_name']}{$_lang['zh_mh']}</th>
		    <td>
		       <input type="text" class="txt" name="fds[model_name]" value="$model_info[model_name]">
			</td>
        </tr>
		<tr>
		   <th scope="row" width="200">{$_lang['is_open']}{$_lang['zh_mh']}</th>
		     <td>
		        <label for="status_yes"><input type="radio" id="status_yes" name="fds[model_status]" {if $model_info[model_status]}checked{/if} value="1"> {$_lang['yes']}</label>
				<label for="satus_no"><input type="radio" id="status_no" name="fds[model_status]" {if !$model_info[model_status]}checked{/if} value="0"> {$_lang['no']}</label>
			</td>
        </tr>
		<tr>
        </tr>
	<!--	<tr>
		  <th scope="row" width="200">{$_lang['industry_binding']}{$_lang['zh_mh']}</th>
		    <td><!--{eval $milist = explode(',',$model_info['indus_bid']);}-->
   <!--         <select onchange="p_indus_add(this.value)"  style="margin-bottom:5px;">
			   <option value="">{$_lang['select_industry']}</option>
			{loop $indus_index[0] $indus}
				<option value="$indus[indus_id]">$indus[indus_name]</option>
			{/loop}
			  </select>
			 <br class="clear">
			 <select name="p_indus_select" id="p_indus_select" multiple=multiple style="width:160px;float:left;height:200px;overflow-y:scroll;background:white;border:#ccc solid 1px" ></select>
			<div style="width:80px;float:left;height:160px;overflow:hidden;margin-left:20px; text-align:center;padding-top:40px;">
				<button onclick = "moveitems()" type="button" class="input_but"><<</button><br><br>
				<button onclick = "additems()" type="button" class="input_but">>></button><br>
			</div>
			<select name="fds[indus_bid][]" id="s_indus_select" multiple=multiple style="width:160px;float:left;height:200px;overflow-y:scroll;background:white;border:#ccc solid 1px;margin-left:20px;">
			{loop $milist $k $m}
				{if !empty($m)}
				<option id="s_indus_select_op_{$m}" value="$m" selected="selected"> $indus_arr[$m]['indus_name']</option>
				{/if}
			{/loop}
			</select>
			<br class="clear">({$_lang['you_can_choose']})
			</td>
         </tr>  -->

		 <tr>
		    <th scope="row" width="200">模型说明{$_lang['zh_mh']}</th>
		      <td>
		        <textarea   name="fds[model_desc]"  id="tar_content"  cols="70">$model_info['model_desc']</textarea>
			  </td>
			   <script type="text/javascript" src="{$_K['siteurl']}/static/js/ueditor/ueditor.config.js"></script>
					<!-- 编辑器源码文件 -->
					<script type="text/javascript" src="{$_K['siteurl']}/static/js/ueditor/ueditor.all.min.js"></script>
					<script type="text/javascript" src="{$_K['siteurl']}/static/js/ueditor/lang/zh-cn/zh-cn.js"></script>
					 <!-- 实例化编辑器 -->
				    <script type="text/javascript">
				        var ue = UE.getEditor('tar_content', {
				            //这里可以选择自己需要的工具按钮名称,此处仅选择如下五个
				        	initialFrameWidth: '80%',
				        	initialFrameHeight: '400'
				        });
				    </script>
         </tr>
		 {if $on_time}
		    <tr>
		      <th scope="row" width="200">{$_lang['last_modified_time']}{$_lang['zh_mh']}</th>
		        <td><!--{eval echo date('Y-m-d H:i:s',$on_time)}--></td>
		    </tr>
         {/if}
		 <tr>
		  <th scope="row" width="200">&nbsp;</th>
		    <td>
		       <div class="clearfix padt10">
		         <button type="submit" name="sbt_edit" class="positive primary pill button" value="1"><span class="check icon"></span>{$_lang['submit']}</button>

               </div>
             </td>
         </tr>
        </table>
       </form>
     </div>
   </div>
</div>
<script type="text/javascript">
        $(function(){
			 $("#end_action_3").click(function(){
			 	 if($("#end_action_3").attr("checked")==true){
				  $("#slt").show();
			  }else{
				 $("#slt").hide();}
			 })
			 if($("#end_action_3").attr("checked")==true){
				  $("#slt").show();
				  }
			 $("#end_action_1").click(function(){
			 	$("#slt").hide();
			 })
			 $("#end_action_2").click(function(){
			 	$("#slt").hide();
			 })


        })

					function p_indus_add(id){
						mod = "";
						{loop $indus_index $k $si}
						if(id=='$k'){
							{loop $si $i}
							if(!$('#s_indus_select_op_{$i[indus_id]}').val()){
							mod +="<option id=\"p_indus_select_op_{$i[indus_id]}\" value=\"{$i[indus_id]}\">{$i[indus_name]}</option>";
							}
							{/loop}
						}
						{/loop}
						$('#p_indus_select').html(mod);
					}

					function moveitems(){
						vs = $('#s_indus_select').val()+'';
						vs = vs.split(",");
						var mod = '';
						for(v=0;v<vs.length;v++){

							if(String(vs[v]) == "null"){
								continue;
							}
							mod+="<option value="+vs[v]+" id=\"p_indus_select_op_"+vs[v]+"\">"+$('#s_indus_select_op_'+vs[v]).html()+"</option>";
							$('#s_indus_select_op_'+vs[v]).remove();
						};
						if(mod!='')
						$('#p_indus_select').append(mod);
					}
					$(function(){
							if($("#hdn_indus_id").val()!=''){
							p_indus_add($("#hdn_indus_id").val());
						}
						})
					function additems(){
						vs = $('#p_indus_select').val()+'';
						vs = vs.split(",");
						var mod = '';
						for(v=0;v<vs.length;v++){
							if(String(vs[v]) == "null"){
								continue;
							}
							mod+="<option value="+vs[v]+" id=\"s_indus_select_op_"+vs[v]+"\" selected=\"selected\">"+$('#p_indus_select_op_'+vs[v]).html()+"</option>";
							$('#p_indus_select_op_'+vs[v]).remove();
						};
						if(mod!='')
						$('#s_indus_select').append(mod);
					}

				</script>
<!--{template ADMIN_DIRECTORY/tpl/admin_footer}-->